package com.waa.gulimall.auth.feigin;

import com.waa.gulimall.auth.vo.GiteeAccessToken;
import com.waa.gulimall.auth.vo.UserLoginVo;
import com.waa.gulimall.auth.vo.UserRegistVo;
import com.waa.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    public R regist(@RequestBody UserRegistVo memberRegistVo);
    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo memberLoginVo);
    @PostMapping("/member/member/oauth/login")
    public R login(@RequestBody GiteeAccessToken giteeAccessToken);
}
